import request from '@/utils/request'

// 机构数量
export function getTableOne(query) {
  return request({
    url: '/analysis/basic/getBasicList',
    method: 'get',
    params: query
  })
}
//医保
export function getTableTow(query) {
  return request({
    url: '/analysis/payment/getInsuredPaymentBasicList',
    method: 'get',
    params: query
  })
}

//详情
export function getDetails(query) {
  return request({
    url: '/analysis/payment/getDetailsByIdCard?idCard=' + query,
    method: 'get'
    //params:query
  })
}
//家庭成员
export function familyFun(query) {
  return request({
    url: '/analysis/basic/getFamilyMember?idCard=' + query,
    method: 'get'
    //params:query
  })
}


//导入错误信息查看
export function getdialogTable(query) {
  return request({
    url: '/insuredImportFileState/getFileList',
    method: 'get',
    params: query
  })
}
//导入错误信息详情
export function getDtails(query) {
  return request({
    url: '/insuredImportFileState/getByFile',
    method: 'get',
    params: query
  })
}


//民政
export function getTableThird(query, pageNum, pageSize) {
  return request({
    url: '/dataAnalysis/v2/base/civilAffairsBureau/list?pageNum=' + pageNum + '&pageSize=' + pageSize,
    method: 'post',
    data: query
  })
}
//人员身份
export function getPersonnelIdentity(query) {
  return request({
    url: '/dataAnalysis/v2/base/civilAffairsBureau/personnelIdentity',
    method: 'get',
    params: query
  })
}

//删除
export function deleteTr(data) {
  return request({
    url: '/dataAnalysis/v2/base/civilAffairsBureau/remove?id=' + data,
    method: 'delete'
  })
}
//批量删除
export function deleteBatchTr(data) {
  return request({
    url: '/dataAnalysis/v2/base/civilAffairsBureau/batch/remove?batchNumber=' + data,
    method: 'delete'
  })
}
//编辑
export function editTr(data) {
  return request({
    url: '/dataAnalysis/v2/base/civilAffairsBureau/edit',
    method: 'put',
    data: data
  })
}
//异常信息列表
export function getAbnormalList(query) {
  return request({
    url: '/dataAnalysis/v2/base/civilAffairsBureau/abnormal/data/list',
    method: 'post',
    data: query
  })
}

//信息修改历史列表
export function getHistoryList(query) {
  return request({
    url: '/dataAnalysis/v2/base/civilAffairsBureau/history/list',
    method: 'get',
    params: query
  })
}
